package org.grow.ceto.exception;

/**
 * @Author: xwg
 * @CreateDate: 21-8-29
 */


public class CetoException extends RuntimeException {
//    各个业务的异常
    public static final int COMMONEXC=711;
    public static final int PLAYEREXC=716;
    public static final int DEALEXC=721;
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public CetoException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public CetoException(String message) {
        super(message);
        this.code = 710;
    }
}
